# -*- coding: utf-8 -*-

from bottle import route, run, request
import json


@route("/post_test", method="POST")
def post_test():
    print(request.content_type)
    bytes_data = request.body.read()
    json_data = json.loads(bytes_data.decode())
    print(json_data)
    return "post ok"

if __name__ == "__main__":
    run(host="127.0.0.1", port=8020)
